# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=cri-tools
pkgver=1.18.0
pkgrel=2
pkgdesc="CLI tool for Kubelet Container Runtime Interface (CRI)"
url="https://github.com/kubernetes-sigs/cri-tools"
arch="x86_64 aarch64 ppc64le"
license="Apache-2.0"
makedepends="go"
options="!check" # no check available
source="$pkgname-$pkgver.tar.gz::https://github.com/kubernetes-sigs/cri-tools/archive/v$pkgver.tar.gz
	crictl.yaml
	"

build() {
	make all
}

package() {
	install -Dm755 _output/crictl "$pkgdir/usr/bin/crictl"
	install -Dm755 _output/critest "$pkgdir/usr/bin/critest"
	install -Dm644 "$srcdir/crictl.yaml" "$pkgdir/etc/crictl.yaml"
}
sha512sums="849b496e6d19eec29e0e56f0b37c094649311b80514f319b0c68c6519e3ddd48e1973c3d288144db998826676416644ec705b7ea0916c21898b40928ea800af1  cri-tools-1.18.0.tar.gz
b2443f5ba6c31421e8f7f8a5d719723781bed342defe942d046ecc5c1b35eed49049ca015fc92160d02905d3a0080a13ad1b9fa65b49dcc082182b7469b33bdd  crictl.yaml"
